package com.example.exception;
import com.example.model.pojo.Result;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;

@ControllerAdvice
public class NiuMaExceptionHandler {
    @ExceptionHandler(RepeateException.class)
    @ResponseBody
    public Result UserEceptionHandler()
    {
        return  new Result("500","验证码已发送，请稍等一段时间...","验证码已发送，请稍等一段时间...");
    }
}

